import request from '@/utils/request'

// 查询线路站点列表
export function listRouteStation(query) {
  return request({
    url: '/basic/routeStation/list',
    method: 'get',
    params: query
  })
}

// 查询线路站点详细
export function getRouteStation(id) {
  return request({
    url: '/basic/routeStation/' + id,
    method: 'get'
  })
}

// 新增线路站点
export function addRouteStation(data) {
  return request({
    url: '/basic/routeStation',
    method: 'post',
    data: data
  })
}

// 修改线路站点
export function updateRouteStation(data) {
  return request({
    url: '/basic/routeStation',
    method: 'put',
    data: data
  })
}

// 删除线路站点
export function delRouteStation(data) {
  return request({
    url: '/basic/routeStation/',
    method: 'delete',
    data: data
  })
}

// 录入线路站点
export function enterRouteStation(data){
  return request({
    url: '/basic/routeStation/addStation',
    method: 'post',
    data: data
  })
}

// 更换线路站点
export function replaceRouteStation(data){
  return request({
    url: '/basic/routeStation/change',
    method: 'put',
    data: data
  })
}

// 批量修改线路站点站序
export function batchUpdateRouteStationOrder(data){
  return request({
    url: '/basic/routeStation/editList',
    method: 'put',
    data: data
  })
}
